let slices = document.getElementById("slices");
let slice = slices.getElementsByTagName("li");
cloneNode = slice[0].cloneNode(true)

sg = new stream_graph("viser1")
sp = new scatterplot("viser2")
pc = new parallelcoord("viser3")

day_data_name = "day3"
reduced_data_name = "reduced_day3"
property_data_name = "property"

slice[0].getElementsByTagName("div")[1].innerText = day_data_name;

d3.json("../../dataset/prcd/" + day_data_name + ".json").then(data => {
    sg.vis(data)
})

// d3.json("../../dataset/prcd/" + day_data_name + ".json", data => {
//     sg.vis(data)
// })

slice[1].getElementsByTagName("div")[1].innerText = reduced_data_name;
slice[2].getElementsByTagName("div")[1].innerText = property_data_name;

d3.json("../../dataset/prcd/" + reduced_data_name + ".json").then(data => {
    let selected_list=[]
    sp.vis(data,selected_list)
    pc.vis(data,selected_list)
})

// d3.json("../../dataset/prcd/" + reduced_data_name + ".json", data => {
//     sp.vis(data,null)
//     pc.vis(data,null)
// })


